﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Test3
{

    class Person
    {
        //private members

        private string name;
        private string address;
        private int age;
        private int tel;

        //public properties

        public string Name 
        { 
            get { return name; }
            set { name = value; }

        }//end of prop Name
        
        
        public string Address 
        {
            get { return address; }
            set { address = value; }

        }//end of prop Address

        public int Age
        {
            get { return age; }
            set { age = value; }

        }//end of prop Age

        public int Tel
        {
            get { return tel; }
            set { tel = value; }

        }//end of prop Tel 


        //overriding to ToString() method from the base class
        public override string ToString()
        {
            return name;

        }//end of ToString() method
    
    }//end of Class Person

}//end of the namespace
